﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace UIPrototyper
{
    class ItemProperties : Property, IChanged
    {
        private string content;

        [DescriptionAttribute("O conteúdo que será apresentado na Lista."),
        CategoryAttribute("Teste")]
        public string Conteudo
        {
            get { return this.content; }
            set { this.content = value; LaunchChangedEvent(this); }
        }

        [Browsable(false)]
        public override string Nome
        {
            get { return ""; }
            set { }
        }

        public override string ToString()
        {
            return content;
        }

        #region IChanged Members

        public event ChangedHandler iChanged;

        public void LaunchChangedEvent(IChanged pChangedObject)
        {
            if (iChanged != null)
            {
                iChanged(pChangedObject);
            }
        }

        #endregion
    }
}
